package com.googlecode.cswish.test;

import org.junit.internal.runners.InitializationError;
import org.junit.internal.runners.JUnit4ClassRunner;

/**
 * Setup struts environment
 * 	 
 * @author jerry.feng Date: 2008-11-24
 */
public class BaseStrutsTestCaseRunner extends JUnit4ClassRunner {

	public BaseStrutsTestCaseRunner(Class<?> klass) throws InitializationError {
		super(klass);
	}

	@Override
	protected Object createTest() throws Exception {
		BaseStrutsTestCase testCase = new BaseStrutsTestCase();
		testCase.setUp();
		
		Object testInstance = super.createTest();
		return testInstance;
	}
}
